import java.util.Scanner;

public class d066_上學去吧 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int h, m;
		int sum_time;
		final int morning = 450;
		final int byebye = 1020;
		
		while(sc.hasNext()) {
			h = sc.nextInt();
			m = sc.nextInt();
			
			sum_time = h * 60 + m;
			
			if(sum_time >= morning && sum_time < 1020)
				System.out.println("At School");
			else
				System.out.println("Off School");
		}
	}
	
}